<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
  <head>
  <%@ include file="/WEB-INF/jsp/inc/taglibs.jsp"%>
	<%@ include file="/WEB-INF/jsp/inc/meta.jsp"%>
	<script src="<c:url value="/resource/js/navbar.js"/>" type="text/javascript"></script>
	<link href="<c:url value="/resource/css/navbar.css"/>" type="text/css" rel="stylesheet">
	
	
   <script type="text/javascript" src="${approot}/resource/jquery/jstree/jquery.cookie.js"></script>
   <script type="text/javascript" src="${approot}/resource/jquery/jstree/jquery.hotkeys.js"></script>
   <script type="text/javascript" src="${approot}/resource/jquery/jstree/jquery.jstree_1.02.js"></script>
	
	<script type="text/javascript">

	 function onloadtree(){
	       $.ajax({
		   	url:'${approot}/admin/objects/tree',
		   	dataType: 'json',
		   	contentType: 'application/json',
			type:'post',
			beforeSend:function(){
		   	
			},
			error:function(request){
				//alert(request.responseText);
			},
			success:function(data){
	 			loadtree(data.tree);
			}
		   });
	}

	
	function loadtree(html) {
		//alert(html);
		//alert('dd');
		$("#menu_tree").jstree({ 
			"html_data" : {"data" :html},
			"themes" : {"theme" : "classic","dots" : true,"icons" :true},
			"core": { "initially_open" : [ "10000"]},
			"languages": [ "zh-cn", "bg" ],
			"plugins" : ["themes", "html_data","ui","languages"]
		}).bind("select_node.jstree", function(e, data){
		var href=data.rslt.obj.attr("rel");
		//alert(href);
		window.parent.document.getElementById("main").src=href;
		//window.parent.document.getElementById("main").src="${approot}/admin/objects/right/"+cid;
	    }) 

	}

	</script>
	

	<script language="JavaScript" type="text/JavaScript">
var show = true;
var hide = false;
//修改菜单的上下箭头符号
function my_on(head,body)
{
	var tag_a;
	for(var i=0;i<head.childNodes.length;i++)
	{
		if (head.childNodes[i].nodeName=="A")
		{
			tag_a=head.childNodes[i];
			break;
		}
	}
	tag_a.className="on";
}
function my_off(head,body)
{
	var tag_a;
	for(var i=0;i<head.childNodes.length;i++)
	{
		if (head.childNodes[i].nodeName=="A")
		{
			tag_a=head.childNodes[i];
			break;
		}
	}
	tag_a.className="off";
}
//添加菜单	
window.onload=function()
{
	//加载树
	//onloadtree();
	m1 =new Menu("menu1",'menu1_child','dtu','100',false,my_on,my_off);
	m1.init();
	 <c:if test="${pv.p_020}">
	m2 =new Menu("menu2",'menu2_child','dtu','100',false,my_on,my_off);
	m2.init();
	 </c:if>
	 <c:if test="${pv.p_030}">
	m3 =new Menu("menu3",'menu3_child','dtu','100',false,my_on,my_off);
	m3.init();
	 </c:if>
	 <c:if test="${pv.p_040}">
	m4 =new Menu("menu4",'menu4_child','dtu','100',false,my_on,my_off);
	m4.init();
	 </c:if>
	 <c:if test="${pv.p_050}">
	m5 =new Menu("menu5",'menu5_child','dtu','100',false,my_on,my_off);
	m5.init();
	 </c:if>
	 <c:if test="${pv.p_060}">
	m6 =new Menu("menu6",'menu6_child','dtu','100',false,my_on,my_off);
	m6.init();
	 </c:if>
	 <c:if test="${pv.p_070}">
	m7 =new Menu("menu7",'menu7_child','dtu','100',false,my_on,my_off);
	m7.init();
	 </c:if>
	 <c:if test="${pv.p_080}">
	m8 =new Menu("menu8",'menu8_child','dtu','100',false,my_on,my_off);
	m8.init();
	 </c:if>
	 
	m9 =new Menu("menu9",'menu9_child','dtu','100',false,my_on,my_off);
	m9.init();
    //alert('aa');
	m10 =new Menu("menu10",'menu10_child','dtu','100',false,my_on,my_off);
	m10.init();
}
</script>
<script type="text/javascript">
var doc = "";
function checked(obj)
{ 
     if(obj != doc)
     {
          obj.className = "checked";
          doc.className = "unchecked";
     }
     doc = obj;
}
</script>
<style type="text/css">
 .checked{
 background:#FDCA00;
 padding:1px 10px 1px 8px; 
}
.unchecked{
 background:#fff;
}
</style>
  </head>
  
<body style="background:#D6F0FF; padding:1px 0 6px 8px;" class="scroll_l">

<div id="menu">
<c:if test="${pv.p_010}">
	<div class="tit" id="menu1" title="">
		<a href="#" title="折叠菜单" class="on" id="menu1_a" tabindex="1" >用户报建管理系统</a> </div>
	<div class="list" id="menu1_child" title="" >
	<ul>
	<c:if test="${pv.p_011}">
			<li><a href="${approot}/admin/apply/apply_list/init/0" onclick="checked(this)" target="main">申请报装</a></li>
		</c:if><c:if test="${pv.p_012}">	<li><a href="${approot}/admin/apply/apply_address_group" target="main" onclick="checked(this)">区域信息</a></li>
			</c:if><c:if test="${pv.p_013}"><li><a href="${approot}/admin/apply/task_list/init/0" onclick="checked(this)" target="main">任务登记</a></li>
			<!-- 
			<li><a href="${approot}/admin/trojan/toinsertmode" onclick="checked(this)" target="main">设备登记</a></li>
		   <li><a href="${approot}/admin/logspy/list/menu/0" target="main" onclick="checked(this)">燃气开通</a></li>
		    -->
		  </c:if><c:if test="${pv.p_014}"> <li><a href="${approot}/admin/apply/flow_to_mod" target="main" onclick="checked(this)">流程审批</a></li>
		  </c:if><c:if test="${pv.p_015}"> <li><a href="${approot}/admin/apply/address_list/init/0" target="main" onclick="checked(this)">地址管理</a></li>
		</c:if>
		<li><a href="${approot}/admin/apply/apply_inquiry" target="main" onclick="checked(this)">报建统计</a></li>
		</ul>
	</div>
	</c:if>
	
<c:if test="${pv.p_090}">	
	
	<div class="tit" id="menu9" title="">
		<a href="#" title="折叠菜单" class="on" id="menu9_a" tabindex="1" >额外费用管理系统</a> </div>
	<div class="list" id="menu9_child" title="" >
		<ul>
		<c:if test="${pv.p_091}">	<li><a href="${approot}/admin/cost/maintain_list/init/0" onclick="checked(this)" target="main">上门维修</a></li></c:if>
		<c:if test="${pv.p_092}">	<li><a href="${approot}/admin/cost/install_list/init/0" onclick="checked(this)" target="main">修理燃气具开通置换</a></li></c:if>
		<li><a href="${approot}/admin/cost/pipeline_list/init/0" target="main" onclick="checked(this)">管道查漏抢险</a></li>
		<li><a href="${approot}/admin/cost/cylinder_list/init/0" target="main" onclick="checked(this)">钢瓶维修</a></li>
		<c:if test="${pv.p_093}">	<li><a href="${approot}/admin/cost/unlock_list/init/0" target="main" onclick="checked(this)">开关气</a></li></c:if>
		<c:if test="${pv.p_094}">	<li><a href="${approot}/admin/cost/other_list/init/0" target="main" onclick="checked(this)">其他费用</a></li></c:if>
		</ul>
	</div>
</c:if>
	 <c:if test="${pv.p_020}">
	<div class="tit" id="menu2" title="" >
		<a href="#" title="折叠菜单" class="on" id="menu2_a" tabindex="2">管道气营业收费管理系统</a> </div>
	<div class="list" id="menu2_child" title="">
		<ul>
		<c:if test="${pv.p_024}">
			<li><a href="${approot}/admin/pre_excerpt/list/menu/0" onclick="checked(this)" target="main">预付费</a></li>
			</c:if>
		 <c:if test="${pv.p_021}">
			<li><a href="${approot}/admin/excerpt/list/menu/0" onclick="checked(this)" target="main">代缴费</a></li>
			</c:if>
			 <c:if test="${pv.p_022}">
			<li><a href="${approot}/admin/surrogate/list/menu/0" onclick="checked(this)" target="main">代扣查询</a></li>
			</c:if>
			 <c:if test="${pv.p_026}">
			<li><a href="${approot}/admin/surrogateCCB/list/menu/0" onclick="checked(this)" target="main">建行代扣查询</a></li>
		 	 </c:if>
		 	  <c:if test="${pv.p_025}">
			<li><a href="${approot}/admin/message/list/menu/0" onclick="checked(this)" target="main">短信催缴</a></li>
			</c:if>
		<!--	 <c:if test="${pv.p_024}">
		   <li><a href="${approot}/admin/logspy/list/menu/0" target="main" onclick="checked(this)">统计报表</a></li>
		   </c:if>
		    -->
		    <c:if test="${pv.p_023}">
		   <li><a href="${approot}/admin/excel/toImportExcel/0" target="main" onclick="checked(this)">导入数据</a></li>
		   </c:if>
		</ul>
	</div>
	</c:if>
	
	 <c:if test="${pv.p_030}">
	<div class="tit" id="menu3" title="" >
		<a href="#" title="折叠菜单" class="on" id="menu3_a" tabindex="3">用户管理</a> </div>
	<div class="list" id="menu3_child" title="">
		<ul>
	<!-- 	 <c:if test="${pv.p_031}">
			<li><a href="${approot}/admin/person/list/menu/0" onclick="checked(this)" target="main">用户管理</a></li>
			</c:if> -->
			<c:if test="${pv.p_032}">
			<li><a href="${approot}/admin/buckle/list/menu/0" onclick="checked(this)" target="main">代扣用户</a></li>
			</c:if>
			<c:if test="${pv.p_033}">
			<li><a href="${approot}/admin/prepaid/list/menu/0" onclick="checked(this)" target="main">预付费用户</a></li>
			</c:if>
			<li><a href="${approot}/admin/prepaidVip/list/menu/0" onclick="checked(this)" target="main">VIP用户</a></li>
			<li><a href="${approot}/admin/prepaidDelete/list/menu/0" onclick="checked(this)" target="main">注销用户</a></li>
		</ul>
	</div>
	</c:if>
	
	 <c:if test="${pv.p_040}">
	<div class="tit" id="menu4" title="" >
		<a href="#" title="折叠菜单" class="on" id="menu4_a" tabindex="4">天然气、液化气进销存系统</a> </div>
	<div class="list" id="menu4_child" title="">
		<ul>
		 <c:if test="${pv.p_041}">
			<li><a href="${approot}/admin/gasrecord/to_add" onclick="checked(this)" target="main">添加进气记录</a></li>
			</c:if>
			 <c:if test="${pv.p_042}">
			<li><a href="${approot}/admin/gasrecord/list/menu/0" onclick="checked(this)" target="main">进气记录管理</a></li>
			</c:if>
			
			<li><a href="${approot}/admin/gasout/to_add" onclick="checked(this)" target="main">添加小瓶出库单</a></li>
			<li><a href="${approot}/admin/gasout/list/menu/0" onclick="checked(this)" target="main">小瓶出库单管理</a></li>
		</ul>
	</div>
	</c:if>
	
	 <c:if test="${pv.p_050}">
	<div class="tit" id="menu5" title="" >
		<a href="#" title="折叠菜单"  class="on" id="menu5_a" tabindex="5">工程材料管理系统</a> </div>
	<div class="list" id="menu5_child" title="">
		<ul>
		 <c:if test="${pv.p_051}">
		<li><a href="${approot}/admin/caidetail/to_add" onclick="checked(this)" target="main">材料入库</a></li>
		</c:if>
		 <c:if test="${pv.p_052}">
		<li><a href="${approot}/admin/caidetail/list/menu/0" onclick="checked(this)" target="main">入库管理</a></li>
		</c:if>
		<c:if test="${pv.p_053}">
		<li><a href="${approot}/admin/outcaidetail/menu/0" onclick="checked(this)" target="main">出库管理</a></li>
		</c:if>
		 <c:if test="${pv.p_054}">
		<li><a href="${approot}/admin/caitype/frame" onclick="checked(this)" target="main">分类管理</a></li>
		</c:if>
		
		</ul>
	</div>
	</c:if>
	
	<c:if test="${pv.p_100}">
	<div class="tit" id="menu10" title="" >
		<a href="#" title="折叠菜单"  class="on" id="menu10_a" tabindex="10">统计报表管理系统</a> </div>
	<div class="list" id="menu10_child" title="">
		<ul>
		 <c:if test="${pv.p_101}">
			<li><a href="${approot}/admin/statistic/apply_statistic" target="main" onclick="checked(this)">报建统计</a></li>
		</c:if>
		<c:if test="${pv.p_102}">
			<li><a href="${approot}/admin/statistic/excerpt_statistic" target="main" onclick="checked(this)">售气统计</a></li>
		</c:if>

		<c:if test="${pv.p_103}">
			<li><a href="${approot}/admin/statistic/daily_statistic" target="main" onclick="checked(this)">日统计报表</a></li>
		</c:if>
<c:if test="${pv.p_104}">
			<li><a href="${approot}/admin/statistic/cost_statistic" target="main" onclick="checked(this)">额外费用统计</a></li>
</c:if>
		</ul>
	</div>
	</c:if>
	
	 <c:if test="${pv.p_060}">
	<div class="tit" id="menu6" title="" >
		<a href="#" title="折叠菜单"  class="on" id="menu6_a" tabindex="6">管道地理信息系统</a> </div>
	<div class="list" id="menu6_child" title="">
		<ul>
		 <c:if test="${pv.p_061}">
			<li><a href="http://192.168.1.9:8081" target="main" onclick="checked(this)">GIS管理</a></li>
		</c:if>
		</ul>
	</div>
	</c:if>
	
	 <c:if test="${pv.p_070}">
	<div class="tit" id="menu7" title="" >
		<a href="#" title="折叠菜单"  class="on" id="menu7_a" tabindex="7">GPRS远程监控系统</a> </div>
	<div class="list" id="menu7_child" title="">
		<ul>
		 <c:if test="${pv.p_071}">
			<li><a href="${approot}/admin/user/to_edit" target="main" onclick="checked(this)">实时监控</a></li>
			</c:if>
			 <c:if test="${pv.p_072}">
			<li><a href="${approot}/admin/user/to_edit" target="main" onclick="checked(this)">告警提示</a></li>
			</c:if>
			 <c:if test="${pv.p_073}">
			<li><a href="${approot}/admin/system/toset" target="main" onclick="checked(this)">报表管理</a></li>
			</c:if>
		
		</ul>
	</div>
	</c:if>
	
	 <c:if test="${pv.p_080}">
	<div class="tit" id="menu8" title="" >
    <a href="#" title="折叠菜单"  class="on" id="menu8_a" tabindex="8">系统管理</a> </div>
	<div class="list" id="menu8_child" title="">
		<ul>
		 <c:if test="${pv.p_081}">
			<li><a href="${approot}/admin/user/frame" target="main" onclick="checked(this)">用户管理</a></li>
			</c:if>
			 <c:if test="${pv.p_082}">
			<li><a href="${approot}/admin/dept/frame" target="main" onclick="checked(this)">部门管理</a></li>
			</c:if>
			 <c:if test="${pv.p_083}">
			<li><a href="${approot}/admin/role/list/0" target="main" onclick="checked(this)">角色管理</a></li>
			</c:if>
		<!-- 	<li><a href="${approot}/admin/logsys/list/menu/0" target="main" onclick="checked(this)">系统日志</a></li> -->
		</ul>
	</div>
	</c:if>
</div>
</body>
</html>
